class GeneralHandler:
  def __init__(self, item):
    self.item = item

    return self

  def printInfo(self):
    f = open('test','w')
    for key, value in self.item.items():
      if key != 'body':
        f.write("key: %s\tValue: %s\n", (key,value))
    f.close()
